package com.ccp.dev.system.dao;
import com.ccp.dev.core.basic.base.IBaseMapper;
import com.ccp.dev.system.model.MessageRead;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
 * 接收状态 Dao层
 *
 * @author csx
 * @date 2012-11-29 16:24:35
 */
@Repository
public interface MessageReadDao extends IBaseMapper<MessageRead,String>
{

	/**
	 * 查找用户是否已读该消息
	 * @param messageId
	 * @param receiverId
	 * @return 返回用户是否已读改消息
	 */
	public MessageRead getReadByUser(@Param("messageId")String messageId, @Param("receiverId")String receiverId);

	/**
	 * 获得已读此消息的人员
	 * @param messageId
	 * @return 返回已读该信息的人员信息
	 */
	public List<MessageRead> getReadByMsgId(@Param("messageId")String messageId);
}